local gitsigns = require("gitsigns")

gitsigns.setup({
    preview_config = {
        border = "solid",
    },
    on_attach = function()
        vim.keymap.set("n", "<Leader>gh", gitsigns.preview_hunk, { buffer = true, desc = "Preview hunk" })

        vim.keymap.set("n", "[c", function()
            gitsigns.nav_hunk("prev")
        end, { buffer = true, desc = "Previous hunk" })

        vim.keymap.set("n", "]c", function()
            gitsigns.nav_hunk("next")
        end, { buffer = true, desc = "Next hunk" })
    end,
})
